package edu.scau.pos.vo;

import edu.scau.core.Enum.SaleStatus;
import edu.scau.pos.domain.Orders;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class SaleVo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Schema(name = "saleId", description = "销售ID", required = true)
    @NotEmpty(message = "销售流程ID不能为空")
    private String saleId;
    //    @Schema(name = "pendingList", description = "挂单商品", type = "array", implementation = SaleLineItemVo.class)
    @ArraySchema(
            schema = @Schema(name = "pendingList", implementation = SaleLineItemVo.class),
            arraySchema = @Schema(description = "挂单商品列表")
    )
    @NotNull(message = "缺失pendingList数据结构")
    private List<SaleLineItemVo> pendingList;
    @ArraySchema(
            schema = @Schema(name = "successList", implementation = SaleLineItemVo.class),
            arraySchema = @Schema(description = "成功商品列表")
    )
    @NotNull(message = "加购商品不能为空")
    private List<SaleLineItemVo> successList;

}
